package kz.pro.shared.services;

import java.util.List;

import kz.pro.shared.entity.UserEntity;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import java.math.BigDecimal;


@RemoteServiceRelativePath("ecm/userService")
public interface UserService extends RemoteService{
	public UserEntity findUser(BigDecimal userId);
	public void saveUser(String name, String surname, String phoneNumber, String phoneType) 
			throws Exception;
	public void updateUser(BigDecimal userId, String name, String surname, String phoneNumber, String phoneType)
			throws Exception;
	public void deleteUser(UserEntity user)
			throws Exception;
	public List<UserEntity> userList();
	public void hello();
}
